<template>
    <el-dropdown :show-timeout="100" trigger="click">
        <el-button plain>
            文章状态
            <i class="el-icon-caret-bottom el-icon--right" />
        </el-button>
        <el-dropdown-menu slot="dropdown" class="no-padding no-border" style="width:190px">
            <el-form-item label-width="0px" style="margin-bottom: 0px" prop="source_uri">
                <el-select v-model="status" placeholder="请选择大类状态">
                    <el-option label="显示" :value="1" />
                    <el-option label="隐藏" :value="0" />
                </el-select>
            </el-form-item>
        </el-dropdown-menu>
    </el-dropdown>
</template>

<script>
export default {
    props: {
        value: {
            type: Number,
            default: 1
        }
    },
    computed: {
        status: {
            get() {
                return this.value
            },
            set(val) {
                this.$emit('input', val)
            }
        }
    }
}
</script>
